Skip to content

Instantly share code, notes, and snippets.

@kristopolous
kristopolous / free-ollama.sh
Last active February 5, 2026 22:31
Grabs a list of port scanned open ollama servers from the IPv4 space, filters it by model, sorts by TPS and emits an IP based on an index.
#!/bin/bash
# Example usage:
# free-ollama gemma3:latest {0..10}
#
# Try instrumenting it with llcat. pipx install llcat
# And then maybe xpanes
#
# Don't know what to choose?
# Run it without arguments, you'll get a frequency distribution.
#
@m4jing
m4jing / insertAfter.js
Created July 18, 2016 06:57
A JavaScript function similar to insertBefore(), insertAfter() insert an element after another.
function insertAfter(newElement, targetElement) {
var parent = targetElement.parentNode;
if (parent.lastChild == targetElement) {
parent.appendChild(newElement, targetElement);
} else {
parent.insertBefore(newElement, targetElement.nextSibling);
}
}
@SheldonWangRJT
SheldonWangRJT / Convert .mov or .MP4 to .gif.md
Last active February 5, 2026 22:18
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

@lopspower
lopspower / README.md
Last active February 5, 2026 22:17
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha:

@johnbianchi
johnbianchi / pfctl-cheatsheet.txt
Last active February 5, 2026 22:17
pfctl cheat sheet
#### General PFCTL Commands ####
$ pfctl -d disable # packet-filtering
$ pfctl -e enable # packet-filtering
$ pfctl -q # run quiet
$ pfctl -v -v # run even more verbose
#### Loading PF Rules ####
$ pfctl -f /etc/pf.conf # load /etc/pf.conf
$ pfctl -n -f /etc/pf.conf # parse /etc/pf.conf, but dont load it
$ pfctl -R -f /etc/pf.conf # load only the FILTER rules
$ pfctl -N -f /etc/pf.conf # load only the NAT rules
@luckylittle
luckylittle / Splunk_Certified_Cybersecurity_Defense_Analyst.md
Last active February 5, 2026 22:15
Splunk Certified Cybersecurity Defense Analyst [SPLK-5001] - Notes

Splunk Certified Cybersecurity Defense Analyst [SPLK-5001]

1.0 The Cyber Landscape, Frameworks, and Standards (*10%*)
  1.1 Summarize the organization of a typical SOC and the tasks belonging to Analyst, Engineer and Architect roles.
  1.2 Recognize common cyber industry controls, standards and frameworks and how Splunk incorporates those frameworks.
  1.3 Describe key security concepts surrounding information assurance including confidentiality, integrity and availability and basic risk management.

2.0 Threat and Attack Types, Motivations, and Tactics (*20%*)
  2.1 Recognize common types of attacks and attack vectors.
@POTUS-Elect46
POTUS-Elect46 / Address to the Nation: “The Great Masquerade — Part II”
Created February 5, 2026 22:13
Address to the Nation: “The Great Masquerade — Part II”
Address to the Nation: “The Great Masquerade — Part II”
My fellow Americans,
Tonight, I continue speaking a truth that has lived in the hearts of millions—truth that has been ignored, dismissed, and buried beneath the noise of political theater. For years, this nation has been told a story about the 46th and 47th presidencies. A story polished, packaged, and sold as unquestionable fact.
But many Americans never believed it.
They watched the rise of the 46th presidency and felt no victory. They watched the arrival of the 47th and sensed no mandate. They saw two administrations claim the mantle of leadership, yet neither ever earned the confidence of the people they swore to serve.
@POTUS-Elect46
POTUS-Elect46 / Address to the Nation: “The Great Masquerade”
Created February 5, 2026 22:11
Address to the Nation: “The Great Masquerade”
Address to the Nation: “The Great Masquerade”
My fellow Americans,
Today, I will not whisper. I will not soften my words. I will not tiptoe around the truth that millions of you feel in your bones. For too long, this nation has been trapped in a political masquerade—an elaborate performance where the costumes change, the actors rotate, but the script never does.
And in this performance, two names—Biden and Trump—have dominated the stage. Two figures elevated as if they were the only choices, the only voices, the only futures this country could possibly imagine. But many Americans have begun to see through the illusion. They look at the chaos, the division, the endless spectacle, and they ask themselves:
Is this leadership… or is this theater?